<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/main.xhtml">

	<ui:define name="menu">
		<h:form>
			<li><h:commandLink action="administrativo" value="Voltar"
					styleClass="nav" /></li>
			<li><h:commandLink action="#{administradorAction.logout()}"
					styleClass="nav" value="Sair"
					rendered="#{administradorAction.admLogado}" /></li>
		</h:form>
	</ui:define>

	<ui:define name="conteudo">
		<h1 id="estadia">Check-out</h1>

		<hr />


		<h:form id="formCadastrarQuarto">
			<label>Numero do Quarto:</label>
			<h:selectOneMenu value="#{estadiaAction.numeroQuarto}" id="numeroQuarto" styleClass="inputCampos validate[required]">
				<f:selectItem itemLabel="Selecione...." />
				<f:selectItems value="#{estadiaAction.listarQuartosOcupados()}" />
			</h:selectOneMenu>
			
			<br/>
			<hr />
			
			<label>Consumiveis</label>
			
			<h:selectManyCheckbox value="#{estadiaAction.consumiveisList}"
            layout="pageDirection" converter="#{estadiaAction.converter}"
            styleClass="coisaNojenta">
            <f:selectItems value="#{estadiaAction.consumiveis}" />
          </h:selectManyCheckbox>
			
			<br />
			<hr />
			
			<label>Extras</label>
			
			<h:selectManyCheckbox value="#{estadiaAction.extrasList}"
            layout="pageDirection" converter="#{estadiaAction.converter}"
            styleClass="coisaNojenta">
            <f:selectItems value="#{estadiaAction.extras}" />
          </h:selectManyCheckbox>
			
			<h:commandButton value="Confirmar"
				action="#{estadiaAction.salvarEstadia}" title="Salvar Estadia"
			style="clear: both" />
			






		</h:form>
	</ui:define>
</ui:composition>
